<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="assetMenu" />
<meta name="nav" content="0" />
<meta name="acc" content="_detect"/>
<title>工地实验室</title>
<!--  通用情况下 不引入 js css  表单验证  js 放置到页面中 -->
<script type="text/javascript"
	src="<c:url value='/ext/ui/jquery-ui-1.8.12.custom.min.js'/>"></script>
<link href="${ctx}/styles/lightness/jquery-ui-1.8.12.custom.css"
	rel="stylesheet" />
	<script>
		$(document).ready(function() {
			$("#addDetect").click(function(){
				url="${ctx}/project/labs/detectcontract!input.action?projectId=${projectId}&signid=${param.signid}&typeId=${param.typeId}";
				mm = showDialogWindow(url);
				if(mm){
					if ($.browser.msie) {
						$("#reload")[0].click();																    		   
		    		}else{
						window.location.reload();										
		    		}
				}
			});
		});
		function showDept(url){
			var obj = new Object();
			mm = showDialogWindow(url);	
		}
		function showDetectcontract(url){
			var obj = new Object();
			mm = showDialogWindow(url);
			if ($.browser.msie) {
				$("#reload")[0].click();																    		   
    		}else{
				window.location.reload();										
    		}
		}
		function showUserDetails(url){
			var obj = new Object();
			 mm = showDialogWindow(url);
			if ($.browser.msie) {
				$("#reload")[0].click();																    		   
    		}else{
				window.location.reload();										
    		}
		}
</script>
</head>
<body>
<form action="detection.action" method="post" id="mainForm"
	class='yform'>
	<div id="content">
  <table  border="0" cellspacing="0" cellpadding="1">
    <tr>
      <th>序号</th>
      <c:if test="${typeId == '3' }"> <th>中心实验室名称</th></c:if>
      <c:if test="${typeId == '4' }"> <th>工地实验室名称</th></c:if>
      <th>检测单位名称</th>
      <th>主要人员</th>
    </tr>
    <c:forEach items="${page.result }" var="detectcontract" varStatus="status">
    <tr>
      <td>${status.count}</td>
      <td><a href="#"  class="underline" onclick="showDetectcontract('${ctx}/project/labs/detectcontract!input.action?id=${detectcontract.id}&projectId=${projectId}');">${detectcontract.contractorder}</a></td>    
       <td><a href="#"  class="underline" onclick="showDept('${ctx}/project/labs/organization!input.action?id=${detectcontract.orgId}&projectId=${projectId}&typeId=5&deptId=${detectcontract.partid}&signid=${detectcontract.signid }');">
      <pt:labels type="dept" argument1="${detectcontract.partid }" single="true"></pt:labels></a> </td>
 	 
       <td>
       <a href="#" class="underline"  onclick="showUserDetails('${ctx}/project/labs/ext/userdepartment!userDetails.action?organizationId=${detectcontract.orgId}&projectId=${projectId}&typeId=5&deptId=${detectcontract.partid}')">进入</a>
        <a id="reload" href="${ctx}/project/labs/detectcontract.action?organizationId=${organizationId}&projectId=${projectId }&typeId=4&deptId=${deptId}&signid=${signid}" class="underline"></a>
       </td>
    </tr></c:forEach>
  </table>
  </div>
<div class="type-button"><input   type="button"
	class="submit" value="新增" id="addDetect" />
	<input   type="button"
	value="关闭" class="reset" onclick="window.close();" />
</div>
</form>
</body>
</html>
